<style type="text/css">
    table {
        border-collapse: collapse;
    }
    .print td,.list td {
        border: 1px #000 solid;
        height: 30px;
    }
    .print .pleft {
        width: 15%;
        text-align: center;
    }
    .print .pright {
        width: 38%;
        text-align: center;
    }
    .list{margin-top:-1px;}
    .list td{text-align: center;}
    .list .title td{font-weight: bold;}
    .foot{float: right;}
    .foot td{height: 35px;vertical-align:bottom;}
    .head{width: 100%;}
</style>
<{assign var ="page" value="23"}> <!--分页显示-->
<{assign var ="start" value="0"}>
<{assign var ="total" value=ceil(($result|@count) / $page)}>
<{assign var ="index" value=0}>
<{section name=pager loop=$total}>
<{assign var ="index" value=$index+1}>
<div style="width: 17cm;height: auto;overflow:hidden;margin: auto;padding-top:10px;">

    <table class="head" align="center">
        <tr>
            <td align="left" style="width: 50%"><div style="height:1cm;overflow:hidden;width:100%;text-align:left;"><img src="/product/putaway/barcode?code=<{$info.putaway_code}>" style="width:7cm;"/></div></td>
            <td align="left"><div style="font-weight: bold;line-height:50px;font-size: 18px;"><{$lang.put_away}><{$lang.items}></div></td>
        </tr>
    </table>
    <table class="print" align="center" style="width: 100%">
        <tr>
            <td class="pleft">PutawayNo</td>
            <td class="pright"><{$info.putaway_code}></td>
            <td class="pleft">ReceivingNo</td>
            <td class="pright"><{$info.receiving_code}></td>
        </tr>
        <tr>
            <td class="pleft"><{$lang.customer}></td>
            <td class="pright"><{$info.customer_id}></td>
            <td class="pleft"><{$lang.put_away_user}></td>
            <td class="pright"><{$info.name}></td>
        </tr>
        <tr>
            <td class="pleft"><{$lang.date}></td>
            <td class="pright"><{$info.date}></td>
            <td class="pleft"><{$lang.remark}></td>
            <td class="pright"><{$info.description}></td>
        </tr>
    </table>
    <table class="list" align="center" style="width: 100%">
        <tr class="title">
            <td>NO</td>
            <td><{$lang.sku}></td>
            <td><{$lang.quantity}></td>
            <td><{$lang.ws_code}></td>
            <td><{$lang.exception}></td>
        </tr>
        <{section name="loop" loop=$result start=$start max=$page }>
        <{assign var ="start" value=$start+1 }>
        <tr>
            <td><{$result[loop].putaway_lot_number}></td>
            <td style="text-align: left;padding-left: 10px;"><{$result[loop].product_sku}></td>
            <td><{$result[loop].putaway_quantity}></td>
            <td><{$result[loop].ws_code}></td>
            <td></td>
        </tr>
        <{/section}>
        <{assign var ="no" value=$start }>
        <{section name="loop" loop=$page*$index-$start}>
        <{assign var ="no" value=$no+1 }>
        <tr>
            <td><{$no}></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <{/section}>
    </table>
    <table class="foot" align="center">
        <tr>
            <td align="right"><{$lang.put_away_user}>:_______________________</td>
        </tr>
        <tr>
            <td align="right"><{$lang.put_away}><{$lang.date}>:_______________________</td>
        </tr>
    </table>
</div>
<div style="page-break-after:always;"></div>
<{/section}>